package sandan.gyl.parameterizedtest;

import java.lang.reflect.ParameterizedType;

public class ParentImpl<T> implements Parent<T> {
	private Class classt;

	public ParentImpl() {
		ParameterizedType parameterizedType = (ParameterizedType) this
				.getClass().getGenericSuperclass();
		System.out.println(parameterizedType);
		this.classt = (Class) parameterizedType.getActualTypeArguments()[0];
		System.out.println(classt);
		System.out.println(parameterizedType.getClass());
		System.out.println(parameterizedType.getOwnerType());
		System.out.println(parameterizedType.getRawType());
	}
}
